/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class Simulation_Plane {
    private String flightNum;
    private String runwayNum;
    private String CircleArea;
    private int windSpeed;
    private int windDir;
    private String aroundArea;
    private String doWhat;
    private String direction;
    private String destination;
    private String spotNum;
    private String tarspot;
    
    public Simulation_Plane()
    {
        flightNum = null;
        runwayNum = null;
        CircleArea = null;
        windSpeed = 0;
        windDir = 0;
        aroundArea = null;
        doWhat = null;
        direction = null;
        destination = null;
        spotNum = null;
        tarspot = null;      
    }
    
    public Simulation_Plane(String db_flightNum, String db_runwayNum, String db_CircleArea, int db_windSpeed, int db_windDir,
                                String db_aroundArea, String db_doWhat, String db_direction, String db_destination, String db_spotNum,
                                String db_tarspot)                             
    {
        flightNum = db_flightNum;
        runwayNum = db_runwayNum;
        CircleArea = db_CircleArea;
        windSpeed = db_windSpeed;
        windDir = db_windDir;
        aroundArea = db_aroundArea;
        doWhat = db_doWhat;
        direction = db_direction;
        destination = db_destination;
        spotNum = db_spotNum;
        tarspot = db_tarspot;
    }
    
    //Approach
    public String ContactApproach()
    {
        return ("Changi approach, " + flightNum + ", Flight Level 140 to 8000 Descending. We have information E");
    }
    
    public String AnswerCommon_landing1()
    {
        return (" radar contact, heading 48. Vector to final. Descend and maintain 8000, " + flightNum);
    }
    
    public String AnswerCommon_landing2()
    {
        return ("Heading 38, " + flightNum);
    }
    
    public String AnswerCommon_landing3()
    {
        return ("Cleared for VOR/DME/ILS runway" + runwayNum + " approch, contact Tower 118.0. "+ flightNum);
    }
    
    public String Answersending_Circle1()
    {
        return ("Hold over " + CircleArea + " ,maintain 8000, "+ flightNum);
    }
    
    public String AnsweroutofCircle()
    {
        return ("Depart hold, descend and maintain 4500, " + flightNum);
    }
    
    public String backaround()
    {
       return ("Approoach, " + flightNum + ", missed approach, maintain 4500.");
    }
    
    //Delivery
    public String contactdelivery()
    {
        return ("Changi Delivery, " + flightNum + ", " + spotNum + ", request clearance to "+ destination + ", flight level 300.");
    }
    
    public String AnswertakeoffDelivery1()
    {
        return ("cleared to " + destination +
                " via ZAMA 9 Departure, Flight planned route, maintain"
                + "flight level 300, squawk 2321, " + flightNum);
    }
    
    public String AnswertakeoffDelivery2()
    {
        return ("Contact Ground, report when ready for push back, " + flightNum);
    }
    
    public String Answerreject()
    {
        return ("Stand-by clearance, " + flightNum);
    }
    
    //Tower
    public String ContactTower()
    {
        return (flightNum + ", on your frequency.");
    }
    
    public String AnswerTakeoffTower1()
    {
        return (runwayNum + ", cleared for takeoff, wind " + windSpeed + " at " + windDir + ", " + flightNum);
    }
    
    public String AnswerwaitOutside()
    {
        return ("hold short of runway " + runwayNum + ", " + flightNum);
    }
    
    public String AnswerwaitInside()
    {
        return ("runway " + runwayNum + ", line up and wait, " + flightNum);
    }
    
    public String AnswerLandingTower1()
    {
        return ("cleared to land runway " + runwayNum + ", wind " + windSpeed + " at " + windDir + " knot, " + flightNum);
    }
    
    public String AnswerLandingTower2(String doWhat)
    {
        return (doWhat + ", contact Ground 121.0, " + flightNum);
    }
    
    public String AnswertInaround ()
    {
        return ("We go around.");
    }
    
    //Departure
    public String AnswerTakeoffDEP1()
    {
        return ("cross IAMA 10000, until further achise, " + flightNum);
    }
    
    public String AnswerTakeoffDEP2()
    {
        return ("contact Changi Control 120.5, " + flightNum + ", good day.");
    }
    
    public String excuteAround()
    {
        return ("Departure, " + flightNum + ", excute go around, 2000 climbing.");
    }
    
    //Ground 
    public String RequestTakeoffGround1()
    {
        return ("Changi Ground, " + flightNum + ", " + spotNum + ", request push back.");
    }
    
    public String AnswerTakeoffGround1()
    {
        return ("push-back approved runway " + runwayNum
                + ", heading " + direction + ", QNH 2990, " + flightNum);
    }
    
    public String AnswerTakeoffGround2()
    {
        return ("Taxi to runway " + runwayNum +", " + flightNum);
    }
    
    public String AnswerStop()
    {
        return ("Hold present position, " + flightNum);
    }
    
    public String Answercont()
    {
        return ("Continue taxing, " + flightNum);
    }
    
    public String RequestTaxitoGate()
    {
        return ("Changi Ground, " + flightNum + "request taxi.");
    }
    
    public String RequestChangeGate()
    {
        return ("Changi Ground, " + flightNum + ", this is Spot " + spotNum + ", request taxi to " + tarspot);
    }
    
    public String AnswerChangeGate()
    {
        return (flightNum + ", receive, taxi to " + tarspot);
    }
}

